class CityModel {
  late String id;
  late String name;
  List<CityModel>? citys;

  CityModel({
    required this.name,
    required this.id,
    this.citys,
  });

  CityModel.fromJson(Map json) {
    name = json['name'].toString();
    id = json['id'].toString();
    List citysData = json['list'];
    citys = citysData
        .map((e) =>
            CityModel(name: e['name'].toString(), id: e['id'].toString()))
        .toList();
  }
}
